﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Campus.Main.Basic.InsertValues
{
    public partial class Odul : Default
    {
        public Odul()
        {
            InitializeComponent();
        }
        public Odul(List<string> item):base(item)
        {
            InitializeComponent();
            textBox1.Text = item[1];
        }

        protected override void button1_Click(object sender, EventArgs e)
        {
            if (textBox1.Text.Length>0)
            {
                aToDb.UpdateTable("odul","description",textBox1.Text,id);
                Close();
            }
            else
            {
                textBox1.Clear();
                MessageBox.Show("Талааны толтургула!!!");
            }
        }
        
    }
}
